package com.cqc.googleplay.application;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

public class MyApplication extends Application {

	private static Context context;
	private static Handler mainHandler;

	@Override
	public void onCreate() {
		super.onCreate();
		context = this;
		mainHandler = new Handler();
	}

	/**
	 * 获取全局使用的Context
	 * @return
	 */
	public static Context getContext() {
		return context;
	}

	/**
	 * 获取全局使用的handler
	 * @return
	 */
	public static Handler getMainHandler() {
		return mainHandler;
	}
}
